import request from '@/utils/request'

// 素材库列表
export function queryMaterialLibrary(data) {
  return request({
    url: `/video/material/library?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// 添加素材库
export function addMaterialLibrary(data) {
  return request({
    url: '/video/material/add',
    method: 'post',
    data: data
  })
}

// 删除素材库
export function deleteMaterialLibrary(data) {
  return request({
    url: '/video/material/del',
    method: 'post',
    data: data
  })
}

export const MATERIAL_TYPE = {
  1: '竖屏视频',
  2: '横屏视频'
}
